<?php

namespace app\model\posts;

use crmeb\basic\BaseModel;
use crmeb\traits\ModelTrait;

/**
 * 帖子类型
 * Class PostsType
 * @package app\model\posts
 */
class PostsType extends BaseModel
{
    use ModelTrait;

    /**
     * 表明
     * @var string
     */
    protected $name = 'posts_type';
    protected $insert = ['add_time'];
    protected $autoWriteTimestamp = false;
    /**
     * 主键
     * @var string
     */
    protected $pk = 'id';

    protected function setAddTimeAttr($value)
    {
        return time();
    }
}